package org.lboot.flow.event.system;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.lboot.flow.module.work.FlowWork;
import org.lboot.flow.module.work.params.FlowTaskParams;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;
import java.util.List;

/**
 * @author kindear
 * 流程分发事件
 */
@Slf4j
@Getter
public class FlowForkEvent extends ApplicationEvent {
    List<FlowWork> flows;

    FlowWork flowWork;

    FlowTaskParams taskParams;

    public FlowForkEvent(Object source, List<FlowWork> flows, FlowWork flowWork, FlowTaskParams params) {
        super(source);
        this.flows = flows;
        this.flowWork = flowWork;
        this.taskParams = params;
    }

    public FlowForkEvent(Object source, Clock clock) {
        super(source, clock);
    }
}
